<script setup lang="ts">
import { useRandomTestingStore } from '@/pages/RandomTesting/store'
import InterviewQuestions from './cmpt/InterviewQuestions/InterviewQuestions.vue'
import MobileFooter from './cmpt/MobileFooter/MobileFooter.vue'

const rootStore = useRandomTestingStore()
const { plainStore, renderQuestionStore, classificationStore } = rootStore
const { headerTitle } = plainStore
const { progressStr } = renderQuestionStore
const { testTypeStr } = classificationStore
</script>

<template>
  <div class="continer">
    <div class="header-box">
      <div class="test-tital">({{ testTypeStr }}){{ headerTitle }}</div>
      <div class="progress">{{ progressStr }}</div>
    </div>
    <InterviewQuestions></InterviewQuestions>
    <MobileFooter></MobileFooter>
  </div>
</template>

<style scoped lang="less">
.continer {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  .header-box {
    flex: none;
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    align-items: start;
    border-bottom: 1px solid #f0f0f0;
    .test-tital {
      flex: auto;
      font-weight: 700;
      font-size: 18px;
    }
    .progress {
      flex: none;
      line-height: 31px;
    }
  }
}
</style>
